cmake_minimum_required(VERSION 3.10)
project(BigScreen)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-g -Wall -Xlinker -export-dynamic")

aux_source_directory(UI UI_SOURCE)
aux_source_directory(src SRC_SOURCE)

find_package(PkgConfig REQUIRED)
find_package(fmt REQUIRED)
find_package(yaml-cpp REQUIRED)
find_package(sdbus-c++ REQUIRED)
pkg_check_modules(GTKMM REQUIRED IMPORTED_TARGET gtkmm-4.0)

include_directories(../include)
link_libraries(PkgConfig::GTKMM fmt rt yaml-cpp pthread SDBusCpp::sdbus-c++)

add_executable(${PROJECT_NAME} run/main.cpp ${UI_SOURCE} ${SRC_SOURCE})
add_executable(UI_test run/UI_test.cpp ${UI_SOURCE} ${SRC_SOURCE})
